#定义一个test类
from test_plt.models import *
from django.contrib.auth.models import User
user = User.objects.get(pk=1)
user
user.username
user.first_name="谭林科"

orj = Project.objects.create(name='Django ORM介绍',
                             version="0.0.1" ,
                             type=1,
                             status=1,
                             created_by=user,
                             create_at="2020-12-29 14:25:00",
                             update_at="2020-12-29 14:25:00")
Project.objects.all()
class test():
    #初始化传入参数
    def __init__(self,a):
        self.att=a
    def test1(self):
        print(self.att)
if __name__ == '__main__':
    test(3).test1()
